﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Configuration;

public partial class Admin_AdminMasterPage : System.Web.UI.MasterPage
{
    public LocalFunctions FUNC = new LocalFunctions(true);

    protected void Page_Load(object sender, EventArgs e)
    {
        Response.Cache.SetExpires(DateTime.Now.AddDays(-1));
        Response.Cache.SetCacheability(HttpCacheability.NoCache);
        Response.Cache.SetValidUntilExpires(true);

        if (Convert.ToInt32(Session["UserID"]) == 0)
        {
            Response.Redirect("Login.aspx");
        }
    }
}
